<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<?php echo ($sets->keyword); ?>" />
<meta name="description" content="<?php echo ($sets->description); ?>" />
<title>三原县信息网</title>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/index.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/index.js"></script>
</head>
<body>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/basic.css" />
<div id="header">
    <div class="top">
        <strong>三原县 　<span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span></strong>
        <?php if(isset($_COOKIE['user'])): ?><span>欢迎,<b style="color:green;"><?php echo (cookie('user')); ?></b> <a href="__ROOT__/member.php">用户中心</a>|<a href="__ROOT__/User/logout">退出</a></span>
        <?php else: ?>
        <span><a href="<?php echo U('/User/reg');?>">注册</a> | <a href="<?php echo U('/User/login');?>">登陆</a></span><?php endif; ?>
    </div>
    <div class="body">
        <div class="logo"><a href="__ROOT__"><img src="__ROOT__/Tpl/Public/images/logo.gif" alt="网站logo"/></a></div>
        <div class="search">
            <form method="get" action="__ROOT__/Search/index/" class="search">
                <ul>
                    <li class="first"><span>信息</span><img src="__ROOT__/Tpl/Public/images/arrow.png" /></li>
                    <li class="show"><a href="#" title="1">信息</a></li>
                    <li class="show"><a href="#" title="2">新闻</a></li>
                </ul>
                <input type="hidden" name="type" id="type" value="1"/><input type="text" name="keyword" class="stext" value="<?php echo ($_GET['keyword']); ?>" /> <input type="submit" value="搜索" class="sub" />
            </form>
        </div>
        <div class="toppost">
            <a href="<?php echo U('/Post/index');?>" style="color:orange;">免费发布信息</a>
            <a href="__ROOT__/member.php/Index/myInfo" style="color:#666;" class="u">修改删除信息</a>
        </div>
    </div>
</div>
<div id="category">
    <ul>
        <li><a href="__ROOT__">首页</a></li>
        <li><a href="<?php echo U('/News');?>">新闻资讯</a></li>
        <?php if(is_array($teninfonav)): $i = 0; $__LIST__ = $teninfonav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Category/index','id='.$value['id']);?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="<?php echo U('/About');?>">关于本站</a></li>
    </ul>
</div>

    <div id="adver">
        <?php if(is_array($topbanner)): $i = 0; $__LIST__ = $topbanner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i; if(count($value) != 0): ?><p><a href="<?php echo ($value["link"]); ?>" target="_blank" title="<?php echo ($value["name"]); ?>"><img src="__ROOT__<?php echo ($value["pic"]); ?>" alt="<?php echo ($value["name"]); ?>"/></a></p>
        <?php else: ?>
        <p class="tip">广告位招租 联系电话：xxxxx</p><?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt 网站首页 </div>

    <div id="left">
        <div class="adver_pics">
            <ul class="pics">
                <?php if(is_array($rollbanner)): $i = 0; $__LIST__ = $rollbanner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i; if(count($value) != 0): ?><li><a href="<?php echo ($value["link"]); ?>" target="_blank" title="<?php echo ($value["name"]); ?>"><img src="__ROOT__<?php echo ($value["pic"]); ?>" alt="<?php echo ($value["name"]); ?>"/></a></li>
                <?php else: ?>
                <li><img src="__ROOT__/Tpl/Public/images/no_adver.jpg" /></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>
            <ul class="num">
                <li class="on" title="悬停">1</li>
                <li title="悬停">2</li>
                <li title="悬停">3</li>
            </ul>
        </div>
        <div class="hotinfos">
            <h2>热点信息</h2>
            <ul>
               <?php if(is_array($hotinfo)): $i = 0; $__LIST__ = $hotinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Info/details/','id='.$value['id']);?>" target="_blank"><?php echo (cuttext($value["title"],20)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div id="topinfo">
        <p class="tbg"></p>
        <?php if(is_array($topinfo)): $i = 0; $__LIST__ = $topinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><dl>
            <dt><a href="<?php echo U('/Info/details/','id='.$value['id']);?>" target="_blank"><?php echo ($value["title"]); ?></a></dt>
            <dd><?php echo (cuttext($value["content"],50)); ?></dd>
        </dl><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div id="right">
        <div class="gonggao">
            <h2>网站公布</h2>
            <ul>
               <?php if(is_array($gonggao)): $i = 0; $__LIST__ = $gonggao;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/About/details', 'id='.$value['id']);?>" target="_blank"><?php echo (cuttext($value["title"],12)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>

        <div class="help">
            <h2>使用帮助</h2>
            <ul>
               <?php if(is_array($help)): $i = 0; $__LIST__ = $help;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/About/details', 'id='.$value['id']);?>" target="_blank"><?php echo (cuttext($value["title"],12)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div id="infos">
        <?php if(is_array($indexinfo)): $i = 0; $__LIST__ = $indexinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i; if($i%2 != 0): ?><div class="list">
                <h2><?php echo ($value["name"]); ?><a href="<?php echo U('/Category/index','id='.$value['id']);?>">更多</a></h2>
                <ul>
                   <?php if(is_array($value["info"])): $i2 = 0; $__LIST__ = $value["info"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i2 % 2 );++$i2; if($i2%2 != 0): ?><li class="sin"><em>[<?php echo (date('m-d',$v["addtime"])); ?>]</em> <a href="<?php echo U('/Info/details','id='.$v['id']);?>"><?php echo ($v["title"]); ?></a> <span><a href="<?php echo U('/Category/index','id='.$v['nid']);?>"><?php echo ($v["name"]); ?></a></span></li>
                   <?php else: ?>
                   <li><em>[<?php echo (date('m-d',$v["addtime"])); ?>]</em> <a href="<?php echo U('/Info/details','id='.$v['id']);?>"><?php echo ($v["title"]); ?></a>  <span><a href="<?php echo U('/Category/index','id='.$v['nid']);?>"><?php echo ($v["name"]); ?></a></span></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        <?php else: ?>
            <div class="list right">
                <h2><?php echo ($value["name"]); ?><a href="<?php echo U('/Category/index','id='.$value['id']);?>">更多</a></h2>
                <ul>
                   <?php if(is_array($value["info"])): $i2 = 0; $__LIST__ = $value["info"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i2 % 2 );++$i2; if($i2%2 != 0): ?><li class="sin"><em>[<?php echo (date('m-d',$v["addtime"])); ?>]</em> <a href="<?php echo U('/Info/details','id='.$v['id']);?>"><?php echo ($v["title"]); ?></a> <span><a href="<?php echo U('/Category/index','id='.$v['nid']);?>"><?php echo ($v["name"]); ?></a></span></li>
                   <?php else: ?>
                   <li><em>[<?php echo (date('m-d',$v["addtime"])); ?>]</em> <a href="<?php echo U('/Info/details','id='.$v['id']);?>"><?php echo ($v["title"]); ?></a>  <span><a href="<?php echo U('/Category/index','id='.$v['nid']);?>"><?php echo ($v["name"]); ?></a></span></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div><?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </div>
<div id="flinks">
    <h2>友情链接</h2>  
    <ul>
        <?php if(is_array($flinks)): $i = 0; $__LIST__ = $flinks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($value["url"]); ?>" target="_blank"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>  
</div>
<div id="footer">
    <p>©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>

</body>
</html>